/*
 * relative     : \src\unocss\shortcuts.ts
 * Author       : 郭鹏超
 * Date         : 2024-08-24 15:02
 * LastEditors  : 郭鹏超
 * LastEditTime : 2025-03-10 10:28
 * Description  :快捷方式
 * CodeIterationRecord:
 */
const shortcuts: Record<string, any>[] = [
  {
    "wh-full": "w-full h-full"
  },
  //子集DOM元素横向布局 左对齐：left  两端对齐between 右对齐:right
  [
    /^aline-(.*)$/,
    ([, c]) => {
      //解决部分浏览器不支持 left，right
      if (c == "left") {
        c = "start";
      }
      if (c == "right") {
        c = "end";
      }
      return `flex-justify-${c} flex items-center flex-wrap gap-3px`;
    }
  ],
  //子集DOM元素纵向布局 左对齐：顶部对齐:start   两端对齐:between   底部对齐:end
  [
    /^y-aline-(.*)$/,
    ([, c]) => {
      return `flex flex-col justify-${c}`;
    }
  ],
  //base-layout 组件专用
  {
    "base-layout-y":
      "wh-full overflow-auto relative theme-bgc-bodyBgcColor box-border flex flex-col son-html-div:(theme-bgc-contentBgcColor box-border w-100% relative)"
  },
  {
    "base-layout-x":
      "wh-full overflow-auto relative theme-bgc-bodyBgcColor box-border flex  son-html-div:(theme-bgc-contentBgcColor box-border h-100%)"
  },
  {
    "animation-row": "transition-all duration-300 ease-in-out relative"
  },
  {
    "drawer-switch-row":
      "aline-center hover:(theme-bgc-primary theme-color-hasBgcfontColor) theme-color-primary theme-bgc-hasBgcfontColor absolute z-100 text-size-12px drawer-switch-basic w-15px h-40px rounded-r-5px top-1/2 transform-translate-y--1/2 right--19px system-shadow-0-1-10-2"
  }
];
export default shortcuts;
